import Cookies from 'js-cookie'

const TokenKey = 'my_token'
// 获取token 为何要写return？
export function getToken() {
  return Cookies.get(TokenKey)
}
// 设置token
export function setToken(token) {
  Cookies.set(TokenKey, token)
}
// 移除token
export function removeToken() {
  Cookies.remove(TokenKey)
}
